<?php


namespace app\admin\common\model;


use think\Model;


class Article extends Model
{
    protected $pk='id';
    protected $table='zh_article';
    protected $autoWriteTimestamp=true; //自动时间戳


    //关联主表
    public function cate(){
        return $this->belongsTo('Cate','cate_id','id');
    }
}